VPBS
VPBS allows you to convert a lua table to a packet buffer. Use this if you do NOT wanna deal with BitStreams and want to do every packet as a string.
Functions
toString
sm.scrapcomputers.VPBS.toString( data )
Converts a table to a VPBS string.
Arguments:
- tbl [ table ] The table to convert.
Returns:
- [ string ] vpbsStr The converted string.
toTable
sm.scrapcomputers.VPBS.toTable( data )
Converts a VPBS string to a table.
Arguments:
- data [ string ] The VPBS string.
Returns:
- [ table ] The table from the string.
isVPBSstring
sm.scrapcomputers.VPBS.isVPBSstring( data )
Returns true if the string is a VPBS-formatted string.
Arguments:
- data [ string ] The data to check.
Returns:
- [ boolean ] True if it's a VPBS string, else not.